const path = require('path');
var {merge}=require('webpack-merge')
var prod_dev=require('./src/prod_env')
var dev_env=require('./src/dev_env')
function resolve(dir) {
	return path.join(__dirname, dir);
}
module.exports= merge(process.env.NODE_ENV=='production'?prod_dev:dev_env,{
	publicPath: './',
	lintOnSave: true,
	chainWebpack: (config) => {
		config.resolve.alias
			.set('@assets', resolve('./src/assets'))
			.set('@public', resolve('./public'))
			.set('@components', resolve('./src/components'))
	},
	devServer: {
		disableHostCheck: true
	}
})

